package com.simpleway.umbre.controller;

import javax.servlet.http.HttpServletRequest;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.simpleway.umbre.domain.Act;
import com.simpleway.umbre.service.ActService;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;

@RestController
@RequestMapping("act")
@Api(value="getAct",tags={"活动接口"})
public class ActController {
	
	@Autowired
	private ActService actService;
	
	
	@ApiOperation("获取活动信息")
	@RequestMapping("/getAct")
	public String getAct(HttpServletRequest request) {
		
		
		Act act = actService.getAct(466252751446016L);
		return act.getName();
		
	}
	
	

}
